﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/SacNetUG.Master" Inherits="System.Web.Mvc.ViewPage<SacNetUG.Models.User>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Create User
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>
        Create User</h2>
    <% Html.EnableClientValidation(); %>
        <% using (Html.BeginForm()) {%>

            <% Html.RenderPartial("EditFields"); %>
            
            <p>
                <input type="submit" value="Create" />
            </p>
            
    <% } %>
            




<%--
                <div class="editor-label">
                <%= Html.LabelFor(model => model.FirstName) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.FirstName) %>
                <%= Html.ValidationMessageFor(model => model.FirstName) %>
            </div>
            
            <div class="editor-label">
                <%= Html.LabelFor(model => model.LastName) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.LastName) %>
                <%= Html.ValidationMessageFor(model => model.LastName) %>
            </div>
            
            <div class="editor-label">
                <%= Html.LabelFor(model => model.EmailAddress) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.EmailAddress) %>
                <%= Html.ValidationMessageFor(model => model.EmailAddress) %>
            </div>

            <div class="editor-label">
                <%= Html.LabelFor(model => model.ImageUrl) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.ImageUrl) %>
                <%= Html.ValidationMessageFor(model => model.ImageUrl) %>
            </div>
            
            
            <div class="editor-label">

            </div>
            <div class="editor-field">
                <%= Html.ValidatedCkEditorFor(model => model.Bio)%>
                <%= Html.ValidationMessageFor(model => model.Bio)%>
            </div>
--%>
    






<%--    <% using (Html.BeginForm())
       {%>
        <%= Html.ValidatedEditorFor(model => model.FirstName)%>
        <div class="editor-label">
            <%= Html.LabelFor(model => model.LastName) %>
        </div>
        <div class="editor-field">
            <%= Html.TextBoxFor(model => model.LastName) %>
            <%= Html.ValidationMessageFor(model => model.LastName) %>
        </div>
        <div class="editor-label">
            <%= Html.LabelFor(model => model.EmailAddress) %>
        </div>
        <div class="editor-field">
            <%= Html.TextBoxFor(model => model.EmailAddress) %>
            <%= Html.ValidationMessageFor(model => model.EmailAddress) %>
        </div>
        <div class="editor-label">
            <%= Html.LabelFor(model => model.Street) %>
        </div>
        <div class="editor-field">
            <%= Html.TextBoxFor(model => model.Street) %>
            <%= Html.ValidationMessageFor(model => model.Street) %>
        </div>
        <div class="editor-label">
            <%= Html.LabelFor(model => model.Street2) %>
        </div>
        <div class="editor-field">
            <%= Html.TextBoxFor(model => model.Street2) %>
            <%= Html.ValidationMessageFor(model => model.Street2) %>
        </div>
        <div class="editor-label">
            <%= Html.LabelFor(model => model.City) %>
        </div>
        <div class="editor-field">
            <%= Html.TextBoxFor(model => model.City) %>
            <%= Html.ValidationMessageFor(model => model.City) %>
        </div>
        <div class="editor-label">
            <%= Html.LabelFor(model => model.State) %>
        </div>
        <div class="editor-field">
            <%= Html.NullableDropDownListFor(model => model.StateId, "States", "Id", "Abbreviation", true)%>
            <%= Html.ValidationMessageFor(model => model.StateId) %>
        </div>
        <div class="editor-label">
            <%= Html.LabelFor(model => model.ZipCode) %>
        </div>
        <div class="editor-field">
            <%= Html.TextBoxFor(model => model.ZipCode) %>
            <%= Html.ValidationMessageFor(model => model.ZipCode) %>
        </div>
        <div class="editor-label">
            <%= Html.LabelFor(model => model.HomePhoneNumber) %>
        </div>
        <div class="editor-field">
            <%= Html.TextBoxFor(model => model.HomePhoneNumber) %>
            <%= Html.ValidationMessageFor(model => model.HomePhoneNumber) %>
        </div>
        <div class="editor-label">
            <%= Html.LabelFor(model => model.CellPhoneNumber) %>
        </div>
        <div class="editor-field">
            <%= Html.TextBoxFor(model => model.CellPhoneNumber) %>
            <%= Html.ValidationMessageFor(model => model.CellPhoneNumber) %>
        </div>

        <p>
            <input type="submit" value="Create" />
        </p>
    <% } %>--%>
    <div>
        <%=Html.ActionLink("Back to List", MVC.User.Index()) %>
    </div>
</asp:Content>
